package com.stone.design.patterns.observer.simple;

import java.nio.file.Path;
import java.util.Observable;
import java.util.Observer;

/**
 * @author Stone
 * @version V1.0
 * @description:
 * @date 5/8/18 20:52
 * @email redsstone@163.com
 */
public class FunNews extends Observable{

    private String title;
    private String content;

    public void setFunNews(String title, String content) {
        this.title = title;
        this.content = content;
        contentChanged();
    }

    public void contentChanged() {
        setChanged();
        notifyObservers();
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
